<!DOCTYPE html>
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <meta charset="utf-8"/>
    <title>米塔企业微云</title>
    <link href="../plugins/bootstrap/bootstrap.min.css" rel="stylesheet">
    <link href="../customize/css/iconfont.css" rel="stylesheet">
    <link href="../customize/css/content.css" rel="stylesheet">
    <style>
        .paih-table tr {
            background: #00233B;
            border-bottom: 8px solid transparent;
            background-clip: padding-box;
        }

        .paih-table tr td:nth-child(1) {
            padding-left: 16px;
            padding-right: 16px;
        }

        .paih-table tr td:nth-child(2) {
            padding-left: 16px;
            padding-right: 16px;
        }

        .paih-table tr td:nth-child(3) {
            padding-left: 0px;
            padding-right: 0px;
        }

        .paih-table tr td:nth-child(4) {
            padding-left: 8px;
            padding-right: 32px;
            text-align: right;
        }

        .paih-table .progress {
            border-radius: 0;
            margin-top: 8px;
            height: 8px;
            background-color: #001A2D;
        }

        .paih-table tr .iconfont {
            color: #83D0EF;
        }

        .paih-table .progress-bar {
            background: #83D0EF;
        }

        .paih-table tr.paihang1 .iconfont {
            color: #F95959;
        }

        .paih-table tr.paihang1 .progress-bar {
            background: #F95959;
        }

        .paih-table tr.paihang2 .iconfont {
            color: #FB7D1B;
        }

        .paih-table tr.paihang2 .progress-bar {
            background: #FB7D1B;
        }

        .paih-table tr.paihang3 .iconfont {
            color: #FCDF1A;
        }

        .paih-table tr.paihang3 .progress-bar {
            background: #FCDF1A;
        }

        .paih-table tr.paihang4 .iconfont {
            color: #6A84E7;
        }

        .paih-table tr.paihang4 .progress-bar {
            background: #6A84E7;
        }

        .table .text-truncate {
            width: 10em;
            margin: 0 auto
        }
    </style>
</head>
<body>
<div class="main-content">
    <div class="d-flex justify-content-between mb-3 mt-1">
        <div class="section-title">
            <a class="font-p16 mr-3" href="##" onclick="javascript:window.history.back()" title="返回报告管理"><i
                    class="iconfont icon-xiahua"></i></a>
            维保报告
        </div>
        <div class="d-flex align-items-center">
            <div class="input-group">
                <input class="form-control" type="text" id="searchTimeBegin" autocomplete="off" placeholder="选择时间范围"
                       style="width:224px;">
                <div class="input-group-append">
                    <button class="btn btn-primary" type="button" onclick="loadData()"><i
                            class="iconfont icon-dituyechaxun"></i></button>
                </div>
            </div>
        </div>
    </div>
    <div class="border-blue d-flex align-items-center mb-3" style="border-left: none;">
        <div class="font-p24 result">
            <strong>结论</strong>
        </div>
        <div class="flex-1 font-p16 px-3 result-text" id="conclusion">
            <!--所选时间区间内，累计保养XX次。<br>
            定保次数10次，一级保养XX次，二级保养XX次，故障维修XX次，预防性维修XX次。<br>
            其中XXXXX设备故障维修次数最多，达到XX次，设备故障次数偏多可能会影响企业安全生产和生产效益，请着重关注。<br>
            XXXXX设备预防性维修次数最多，设备老化可能导致预防性维修次数过多，从而影响生产效率，请着重关注。-->
        </div>
    </div>
    <div class="d-flex mb-3">
        <div class="flex-1 border-section position-relative">
            <div class="section-title mb-3">保养情况分布图
                <span class="title-icon"></span>
            </div>
            <div class="text-center position-absolute" style=" width: 172px; top: 167px; left: 117px;">
                <div class="text-bolder font-p24 text-powerOn" id="ljby">100</div>
                <div class="font-p12 text-emphasize mb-1">次</div>
                <div class="font-p12">累计保养</div>
            </div>
            <div class="chart" id="chart_pie" style="height: 307px"></div>
        </div>
        <div class="flex-1 border-section mx-3">
            <div class="section-title mb-3">维保用时分析
                <span class="title-icon"></span>
            </div>
            <div class="chart" id="chart_bar" style="height: 283px"></div>
        </div>
        <div class="flex-1 border-section">
            <div class="section-title mb-4">设备故障维修排行
                <span class="title-icon"></span>
            </div>
            <div class="mx-n3">
                <table class="table text-nowrap paih-table" id="table_id">
                </table>
            </div>
        </div>
    </div>
    <div class="border-section">
        <div class="d-flex justify-content-between align-items-start mb-3">
            <div class="section-title">设备保养信息
                <span class="title-icon"></span>
            </div>
            <div class="mt-3">
                <button class="btn btn-warning" type="button"
                        onclick="generateReports()"><i class="iconfont icon-daochu"></i> 导出
                </button>
            </div>
        </div>
        <table class="table table-striped table-bordered table-center " id="export_table">
            <!--    <thead>
                    <tr>
                        <th>#</th>
                        <th>设备名称</th>
                        <th>设备编号</th>
                        <th>使用率</th>
                        <th>维保种类</th>
                        <th>计划时间</th>
                        <th>完成时间</th>
                        <th>实施用时</th>
                        <th>维保内容</th>
                        <th>更换材料清单</th>
                        <th>实施人</th>
                        <th>检查验证人</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>demo设备1</td>
                        <td>SC83467534</td>
                        <td>98.0%</td>
                        <td>预防性维修</td>
                        <td>2020-10-23 12:23:23</td>
                        <td>2020-10-23 12:23:23</td>
                        <td>30小时25分</td>
                        <td>
                            <div class="text-truncate more-tooltip" data-toggle="tooltip" title="更换的备件、加换液气种类及数量">更换的备件、加换液气种类及数量</div>
                        </td>
                        <td>
                            <div class="text-truncate more-tooltip" data-toggle="tooltip" title="更换的备件、加换液气种类及数量">更换的备件、加换液气种类及数量</div>
                        </td>
                        <td>王先僧</td>
                        <td>王先僧</td>
                    </tr>
                </tbody>-->
        </table>
        <div id="page" class="page_div mb-3"></div>
    </div>
</div>
<script src="../plugins/jquery-3.4.1.min.js"></script>
<script src="../plugins/bootstrap/bootstrap.bundle.min.js"></script>
<script src="../plugins/alert.js"></script>
<script src="../plugins/paging.js"></script>
<script src="../plugins/laydate/laydate.js"></script>
<script src="../plugins/jquery.cookie.js"></script>
<script src="../plugins/echarts.min.js"></script>
<script src="../plugins/ExcelUtil.js"></script>
<script src="../customize/js/CommonUtils.js"></script>
<script src="../customize/js/common.js"></script>
<script src="../customize/js/customModalV2.js"></script>
<script src="../customize/js/maintainReport.js"></script>
</body>
</html>